<?php

namespace App\Repository\Repositories;



use App\Models\StoreBargainUserHelp;
use App\Models\StoreHead;
use App\Models\User;
use App\Repository\RepositoryInterface\PersonalInterface;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;



class PersonalRepositories implements PersonalInterface
{
    public function index($uid)
    {
       $user=DB::select('select * from tg_user where uid='.$uid);;
       return $user;

    }


    /**
     * @return array
     * 活动列表
     */
    public function articleIndex()
    {
        $article=DB::select('select * from tg_article');
        return $article;
    }


    /**
     * 用户订单
     */

    public function orderUser($uid)
    {
       $order=DB::select('select * from tg_store_order where uid='.$uid);
       return $order;
    }


    /**
     * 团长新增
     */
    public function colonelCreate($param){
        $colonel=StoreHead::create($param);
        return $colonel;
    }

    /**
     * 分享
     */
    public function shareUser($param){
        $share=User::where('param',$param)->first();

    }


}
